<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="root"></div>
</body>  
<!-- 提供react 核心语法 -->
<script src="../react@17.js"></script>
<!-- 渲染dom --> <!-- react dom 库依赖react核心库 索引必须在react.js之后引入react-dom.js -->
<script src="../react-dom@17.js"></script>
<script>
    console.log(React);
    //create 创建 Element 元素
    let div = React.createElement("div",{id:"box"},"学习使我快乐");
    console.log(div)
    console.log(ReactDOM)
    ReactDOM.render(div,document.getElementById("root"))
</script>
</html>